package com.wutao.panzh.admin.service.Impl.index;

import com.alibaba.dubbo.config.annotation.Service;
//注意这里导入的是index里面的包
import com.panzh.entity.index.UserInfo;
import com.wutao.panzh.admin.mapper.UserInfoMapper;
import com.wutao.panzh.service.index.UserService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class IndexUserInfoServiceImpl implements UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo getUserByTel(String userTel) {
        UserInfo info = new UserInfo();
        info.setPhoneNum(userTel);
        return userInfoMapper.selectOne(info);
    }

    @Override
    public void updateHeadImag(String imagUrl, String userId) {
        userInfoMapper.updataHeadImage(imagUrl,userId);
    }
}
